using System;
using System.Collections.Generic;
using dbvc.data;

namespace dbvc.security
{
    public static class Session
    {
        internal static IDictionary<string,  IList<Action>> actions = new Dictionary<string, IList<Action>>();

        public static db_user Actions(this db_user self, Action[] values)
        {
            if (!actions.ContainsKey(self.name)) actions.Add(self.name, values);
            return self;
        }

        public static IList<Action> Actions(this db_user self)
        {
            return actions[self.name];
        }
    }
}